import { Component, OnInit, ViewChild, Inject, Injectable, Injector} from '@angular/core';
import { _HttpClient, ModalHelper } from '@delon/theme';
import { STColumn, STComponent, STColumnButton, STPage } from '@delon/abc';
import { SFSchema, SFComponent } from '@delon/form';
import { GridComponent, HttpService, SupDic} from 'lbf';
import { NzMessageService} from 'ng-zorro-antd';
import { Router } from '@angular/router';

@Component({
  selector: 'app-ysgzz-kjjkcf',
  templateUrl: './kjjkcf.component.html',
})
export class YsgzzKjjkcfComponent implements OnInit {

  lj='bclj'

  editSchema :SFSchema = {
    properties: {
      mzh: {
        type: 'string',
        title: '门诊号',
        ui: {
          width:  190,
          grid: {
            span: 24
          }
        }
      },
      sfz: {
        type: 'string',
        title: '身份证',
        ui: {
          grid: {
            span: 4
          }
        }
      },
      xm: {
        type: 'string',
        title: '姓名',
        ui: {
          grid: {
            span: 5
          }
        }
      },
      xb: {
        type: 'string',
        title: '性别',
        ui: {
          grid: {
            span: 5
          }
        }
      },
      ks: {
        type: 'string',
        title: '科室',
        ui: {
          grid: {
            span: 5
          }
        }
      },
      ys: {
        type: 'string',
        title: '医生',
        ui: {
          grid: {
            span: 5
          }
        }
      },
      rjbz: {
        type: 'string',
        title: '入境病种',
        ui: {
          grid: {
            span: 4
          }
        }
      },
      sg: {
        type: 'string',
        title: '身高',
        ui: {
          grid: {
            span: 5
          }
        }
      },
      tz:{
        type: 'string',
        title: '体重',
        ui: {
          grid: {
            span: 5
          }
        }
      },
      xy: {
        type: 'string',
        title: '血压',
        ui: {
          grid: {
            span: 5
          }
        }
      },
      xt: {
        type: 'string',
        title: '血糖',
        ui: {
          grid: {
            span: 5
          }
        }
      }
    },
    ui: {
      spanLabelFixed: 80,
      grid: {
        span: 4
      }
    }
  }

  cfColumns: STColumn[]= [
    {title: '选择',type: 'checkbox'},
    {title: '健康教育处方',index: '',width: 900},
    {title: '备注',index: ''},
  ] 
   constructor(private lbservice: HttpService,
    private msgSrv: NzMessageService ,
    private route: Router,
    private supdic: SupDic) { }

  ngOnInit() { }

  cfChange($event){

  }

  return(){
    this.route.navigateByUrl('/ysgzz/ysgzzxx')
  }

  save(){
    this.msgSrv.info('等待发送');
  }

  close(){
    this.route.navigateByUrl('/ysgzz/ysgzzxx')
  }
}
